//
//  UserALLBuyHeadTableViewCell.m
//  EasyBuy
//
//  Created by apple on 12-10-20.
//  Copyright (c) 2012年 shen donghao. All rights reserved.
//

#import "UserALLBuyHeadTableViewCell.h"

@implementation UserALLBuyHeadTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        userHeadPhoto = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 40, 40)];
        
        userHeadPhoto.backgroundColor = [UIColor redColor];
        [self addSubview:userHeadPhoto];
        [userHeadPhoto release];
        
        userName = [[UILabel alloc] initWithFrame:CGRectMake(50, 17, 250, 20)];
        userName.backgroundColor = [UIColor clearColor];
        
        [self addSubview:userName];
        [userName release];
    }
    return self;
}

- (void)setCellInfo:(NSDictionary *)dictionary{
    _userHeadPhotoStr = @"宝贝头像";
    _userNamgeStr = @"清风吻过";
    [self setCellInfoData];
}
- (void)setCellInfoData{
    userHeadPhoto.image = [UIImage imageNamed:_userHeadPhotoStr];
    userName.text = _userNamgeStr;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)dealloc{
    [userHeadPhoto release];
    [userName release];
    
    [super dealloc];
    
}

@end
